package panda.client.services;

import panda.client.engine.MagicCard;
import panda.client.engine.ServerModel;
import panda.client.enumerations.ClientID;
import panda.client.enumerations.MagicSet;

import com.google.gwt.user.client.rpc.RemoteService;

public interface DataService extends RemoteService {
	public MagicCard getCardViaExactID(String name, MagicSet set, int id);
	// public MagicCard getCardViaExactName(String name);
	// public List<MagicCard> getCardViaRegexName(String pattern);
	// public List<MagicCard> getCardViaRegexText(String pattern);
	
	public long getNewServerID();

	public ClientID registerClient(String placeholder);
	public ServerModel getModel(ClientID sessionID);
	public void updateModel(ClientID sessionID, ServerModel model);
}